const dictionary = {
  CONTRACT_TYPE: [
    {
      key: '主合同',
      value: 1
    },
    {
      key: '分包合同',
      value: 2
    },
    {
      key: '挂靠合同',
      value: 3
    }
  ],
  SEX: [
    {
      key: '男',
      value: 1
    }
  ]
}

module.exports = [
  {
    url: '/system/dictionary',
    type: 'get',
    response: config => {
      const { code } = config.query
      const data = dictionary[code]
      return {
        code: 200,
        data: data
      }
    }
  }
]
